﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using iTextSharp;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Data.SqlClient;
using System.IO;

namespace Nathan_tools
{
    public partial class frm_pdf : Form
    {
        public frm_pdf()
        {
            InitializeComponent();
        }

        private void frm_pdf_Load(object sender, EventArgs e)
        {
            datatable.Rows.Add("asdf", "", "", "", "");
        }

        private void btn_pdf_generate_Click(object sender, EventArgs e)
        {
            Document document = new Document();
            PdfWriter.GetInstance(document, new FileStream("nathan.pdf", FileMode.Create));
            document.Open();
            document.Add(new Paragraph("hello!http://94011.info"));
            document.Close();
        }
   }
}
